This content provides detailed instructions on integrating the Sequence Embedded Wallet SDK with React Native for complete wallet and indexer integration.
Setup shims for ethers and other crypto related packages
pbkdf2
for ethers
from react-native-quick-crypto
below:cryptoSetup.ts
as early in the app lifecycle as you can. In this demo these are imported and set at the top in App.tsx.Secondly, we need to set aliases for some shims, in babel.config.js
with help of the babel-plugin-module-resolver
dev dependency. See babel.config.js for the code snippet to update the aliases.Initialize Sequence WaaS
Signing in
Wallet operations
sequenceWaas
instance to perform wallet operations like sending transactions, signing messages, etc. See the google code snippet below for an example, and check the App.tsx file for more details.Migration notes for Ethers v6 update
react-native-quick-crypto-ethers-patch.js
and related configuration is no longer needed since ethers v6 allows us to register the pbkdf2 function directly from the react-native-quick-crypto
package. (See cryptoSetup.ts for the related code.)